Skip to content

docs: pin v2.24.1 and document git's fixup subjects - #103

Merged
shenxianpeng merged 1 commit into
mainfrom
chore/pin-v2.24.1
Nov 23, 2026
Merged

shenxianpeng merged 1 commit into
mainfrom
chore/pin-v2.24.1

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Catch up with CLI v2.24.1 (published 2026-11-23; PyPI has it).

  • Pins: the six pre-commit rev: snippets move from v2.24.0 to v2.24.1 (configuration, example, compare/tools, pre-commit guide ×3). Blog posts untouched.
  • Changelog: a v2.24.1 (2026-11-23) entry with one Fixed line. No Highlights row: it is a bug-fix-only patch release.
  • Rules page: CC002 and CC003 say the fixup!, squash! and amend! subjects git writes are not judged; CC004's "Not counted" list gains them; CC005 points at CC004 for the same set.
  • Configuration table: the subject_max_length and subject_min_length rows name them next to the Revert "..." subjects.

Before / after (rules page, CC004 "Not counted")

Before:

  • The Revert "..." and Reapply "..." subjects git revert writes, which add nine characters to a subject that already fit. CC005 skips them too.

After:

  • The Revert "..." and Reapply "..." subjects git revert writes, which add nine characters to a subject that already fit. CC005 skips them too.
  • The fixup!, squash! and amend! subjects git commit --fixup and --squash write, which add seven or eight characters to a subject that already fit. CC005 skips them too, and CC009 decides whether they are allowed.

Checks run locally

  • python -m pytest tests/ -q against commit-check==2.24.1 from PyPI: 18 passed (docs-sync pins match).
  • nox -s docs (mkdocs build --strict): built clean.

Summary by CodeRabbit

  • Documentation
    • Clarified that CC002–CC005 skip Git-generated fixup!, squash!, and amend! subjects when checking subject rules; CC009 still determines whether those commits are allowed.
    • Updated pre-commit configuration examples to use Commit Check v2.24.1.

Pin the pre-commit snippets to v2.24.1, add its changelog entry, and say
on CC002 to CC005, CC009 and the subject length options that the fixup!,
squash! and amend! subjects git writes are not judged.
@netlify

netlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for commit-check ready!

Name Link
🔨 Latest commit 31e2ed7
🔍 Latest deploy log https://app.netlify.com/projects/commit-check/deploys/6b043e9dda89d3e5c5d05c16
😎 Deploy Preview https://deploy-preview-103--commit-check.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@shenxianpeng shenxianpeng self-assigned this Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Walkthrough

Documentation now describes how CC002–CC005 handle Git-generated commit subjects and updates pre-commit examples to version v2.24.1.

Changes: Commit subject documentation

Layer / File(s) Summary
Document generated subject handling
docs/rules.md, docs/configuration.md, docs/changelog.md
Rule and configuration descriptions cover generated commit subjects. The changelog records the v2.24.1 fix and notes that CC009 determines whether those commits are allowed.
Update pre-commit version references
docs/compare/tools.md, docs/configuration.md, docs/example.md, docs/guides/pre-commit.md
Pre-commit examples now use Commit Check v2.24.1.

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Other

Suggested labels: documentation

Pre-merge checks: Passed 2

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the two main changes in the PR: pinning the documented Commit Check revision to v2.24.1 across the docs, and documenting how Git-generated fixup!, squash!, and amend! subjects are hand…
Full details: Title check

Explanation

The title names the two main changes in the PR: pinning the documented Commit Check revision to v2.24.1 across the docs, and documenting how Git-generated fixup!, squash!, and amend! subjects are handled. The changelog, rules, and configuration changes all match these two points, so the title is specific and accurate. The title is 51 characters and follows the docs: prefix convention.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@shenxianpeng
shenxianpeng merged commit 74a1142 into main Nov 23, 2026
7 of 8 checks passed
@shenxianpeng
shenxianpeng deleted the chore/pin-v2.24.1 branch November 23, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant